class CreateSubContractors < ActiveRecord::Migration
  def self.up
    create_table :sub_contractors do |t|
      t.string  :name, :null => false
      t.string  :official_url
      t.string  :principal
      t.string  :logo_url
      t.text    :description
      t.integer :project_count, :default => 0
      t.timestamps
    end
  end

  def self.down
    drop_table :sub_contractors
  end
end
